package com.yunban.project.template.model.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.io.Serial;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

/**
 * @author: lijiajun
 * @date: 2024-11-06
 * @version: 1.0
 */
@Data
@Schema(description = "前端模板响应参数")
public class TemplateResp implements Serializable {
    @Serial
    private static final long serialVersionUID = 1L;
    @Schema(description = "模板ID")
    private Long id;
    @Schema(description = "模板类型ID")
    private long blockTypeId;
    @Schema(description = "模板类型信息")
    private TypeResp blockType;
    @Schema(description = "模板名称")
    private String name;
    @Schema(description = "模板Code")
    private String code;
    @Schema(description = "模板内容")
    private String html;
    @Schema(description = "内部模板HTML内容")
    private String innerHtml;
    @Schema(description = "使用数量")
    private int useCount;
    @Schema(description = "收藏数量")
    private int collectCount;
    @Schema(description = "示意图")
    private String diagram;
    @Schema(description = "模板风格列表")
    private List<StyleResp> styleList = new ArrayList<>();
    @Schema(description = "模板组列表")
    private List<TemplateGroupResp> groupList = new ArrayList<>();

    @Schema(description = "是否收藏")
    private boolean collected = false;
}
